resetDialog is used (also) as GLib timeout function, so while just returning
an undefined value will stop the timeout anyways, it's just cleaner to
use the GSource expected return values
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1203
let resetDialog = () => {
if (this.state != ModalDialog.State.OPENED)
- return;
+ return GLib.SOURCE_REMOVE;
this._passwordEntry.hide();
this._cancelButton.grab_key_focus();
this._okButton.reactive = false;
+
+ return GLib.SOURCE_REMOVE;
};
if (delay) {